package com.my.design.adapter;

// 对象适配器
public class ObjectAdapter implements Vga{

    private Telephone telephone;

    public ObjectAdapter(Telephone telephone) {
        this.telephone = telephone;
    }

    @Override
    public void VgeType() {
        if (telephone != null) {
            telephone.type();
            System.out.println("得到typeC的输入转化成Vga");
            System.out.println("成功转化成Vga");
        }
    }
}
